home *** CD-ROM | disk | FTP | other *** search
-
- /* Generated by Interface Builder */
-
- #import "FortuneMaker.h"
- #import <appkit/appkit.h>
- #import "fortune.h"
-
- @implementation FortuneMaker
-
- - setViewer:anObject
- {
- viewer = anObject;
- return self;
- }
-
-
- - pickFortune:sender
- {
- int i;
- long random();
- long randomNumber;
-
- randomNumber = random();
-
- i = abs(randomNumber % NUM);
- [viewer setStringValue:fortunes[i]];
-
-
- return self;
- }
-
-
- @end
-